package com.cssw.fyzb.core.dao.adnumprice;


import com.cssw.fyzb.core.model.dodb.AdNumPrice;
import com.cssw.fyzb.core.model.dodb.AdNumPriceLog;

import java.math.BigDecimal;
import java.util.List;

public interface AdNumPriceDao {

    AdNumPriceLog getAdNumPriceLog(Long userId);

    AdNumPrice getConfig(int num);

    Boolean addPrice(Long userId,BigDecimal price);

    /**
     * 根据主键查询
     *
     * @return
     */
    List<AdNumPrice> list();

    void updateNum(Long numId, Integer num);

    void updateLog(AdNumPriceLog log);

    Long saveLog(Long userId, Integer num, BigDecimal price);
}
